package com.hmall.order.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

/**
 * WebMVC配置类
 *
 * @Author Json.D
 * @Date 2022/8/12 15:15
 * @Blog
 * @Description: WebMVC配置类
 */

@Configuration
public class MvcConfig implements WebMvcConfigurer {

    @Override
    public void addInterceptors(InterceptorRegistry registry) {
        registry.addInterceptor(new MVCInterceptorConfig())
                .addPathPatterns("/order/**");
    }
}
